﻿@using KRM.Core

@using KRM.Core.Library
@model KRM.Core.tblEmail
@{
    var i = 1;
}
<form action="/EmailTicket/SendMail" id="frReplyEmail" method="POST" class="form-horizontal" role="form" enctype="multipart/form-data">
    <input type="hidden" id="CountAttachment" name="CountAttachment" value="1"/>
    <input type="hidden" id="Isfull" name="Isfull" value="False"/>
    <input type="hidden" id="EmailID" name="MailID" value="@Model.EmailID"/>
    <input type="hidden" name="UserID" id="UserID" value="@Users.Current(User.Identity.Name).UserID"/>
    <input type="hidden" name="UserEmail" id="UserEmail" value="@Users.Current(User.Identity.Name).MyEmail"/>

    <!-- BEGIN SAMPLE FORM PORTLET-->   
               <div class="portlet box green ">
                  <div class="portlet-title">
                     <div class="caption">
                        Reply Email
                     </div>
                  </div>
                  <div class="portlet-body form">
                      <div class="form-body">                     
                         <div class="form-group">
                              <label  class="col-md-3 control-label">To</label>
                              <div class="col-md-9">
                                 <div class="input-group">
                                    <span class="input-group-addon"><i class="icon-envelope"></i></span>
                                    <input id="To" type="email" name="To" class="form-control" placeholder="" value="@Model.From">
                                 </div>
                              </div>
                           </div>  

                          <div class="form-group">
                              <label  class="col-md-3 control-label">Cc</label>
                              <div class="col-md-9">
                                 <input id="Cc" name="Cc" type="text" class="form-control"  placeholder="" value ="">                                 
                              </div>
                           </div>
                        
                           <div class="form-group">
                              <label  class="col-md-3 control-label">Subject</label>
                              <div class="col-md-9">
                                 <input id="Subject" name="Subject" type="text" class="form-control"  placeholder="" value ="Re: @Model.Subject">                                 
                              </div>
                           </div>

                           <div class="form-group">
                              <label  class="col-md-3 control-label">Apply Macro</label>
                              <div class="col-md-9">
                                 @Html.DropDownList("MacroTitle", null, null, new { onchange ="SetTextAreaValue(this.value)"})
                              </div>
                           </div>   
                                           
                           <div class="form-group">
                              <label  class="col-md-3 control-label">Content</label>
                              <div class="col-md-9">
                                 <textarea class="form-control" rows="10" id ="txtContent" name ="Content"></textarea>
                                  </div>
                               </div>
                           <div class="form-group">
                              <label for="exampleInputFile" class="col-md-3 control-label">File input
                                  <br /><small><a onclick="AddMoreAttachment()">More attachment</a></small>
                              </label>
                              <div class="col-md-9">
                                  <input type="file" id="InputFile1" name="InputFile1">                                   
                              </div>
                           </div>
                          <div id="divMoreAttachment">
                          </div> 
                  </div>
                      </div>
                   </div>
    

    <div class="modal-footer">        
        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
        <a  class="btn btn-default" href="/EmailTicket/ReplyEmailFull/@Model.EmailID">Full Editor</a>
        <button type="submit" id="btnAccept" class="btn btn-default"onclick="">Send</button>
    </div>
</form>
